home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Half-Life Model Viewer / src / ViewerSettings.h < prev   
C/C++ Source or Header  |  1999-10-20  |  2KB  |  102 lines

  1. //
  2. //                 Half-Life Model Viewer (c) 1999 by Mete Ciragan
  3. //
  4. // file:           ViewerSettings.h
  5. // last modified:  May 29 1999, Mete Ciragan
  6. // copyright:      The programs and associated files contained in this
  7. //                 distribution were developed by Mete Ciragan. The programs
  8. //                 are not in the public domain, but they are freely
  9. //                 distributable without licensing fees. These programs are
  10. //                 provided without guarantee or warrantee expressed or
  11. //                 implied.
  12. //
  13. // version:        1.2
  14. //
  15. // email:          mete@swissquake.ch
  16. // web:            http://www.swissquake.ch/chumbalum-soft/
  17. //
  18. #ifndef INCLUDED_VIEWERSETTINGS
  19. #define INCLUDED_VIEWERSETTINGS
  20.  
  21.  
  22.  
  23. enum // render modes
  24. {
  25.     RM_WIREFRAME,
  26.     RM_FLATSHADED,
  27.     RM_SMOOTHSHADED,
  28.     RM_TEXTURED
  29. };
  30.  
  31.  
  32.  
  33. typedef struct
  34. {
  35.     // model 
  36.     float rot[3];
  37.     float trans[3];
  38.  
  39.     // render
  40.     int renderMode;
  41.     float transparency;
  42.     bool showBackground;
  43.     bool showGround;
  44.     bool showHitBoxes;
  45.     bool showBones;
  46.     bool showTexture;
  47.     bool showAttachments;
  48.     int texture;
  49.     float textureScale;
  50.     int skin;
  51.     bool mirror;
  52.     bool useStencil;    // if 3dfx fullscreen set false
  53.  
  54.     // animation
  55.     int sequence;
  56.     float speedScale;
  57.  
  58.     // bodyparts and bonecontrollers
  59.     int submodels[32];
  60.     float controllers[8];
  61.  
  62.     // fullscreen
  63.     int width, height;
  64.     bool use3dfx;
  65.     bool cds;
  66.  
  67.     // colors
  68.     float bgColor[4];
  69.     float lColor[4];
  70.     float gColor[4];
  71.  
  72.     // misc
  73.     int textureLimit;
  74.     bool pause;
  75.  
  76.     // only used for fullscreen mode
  77.     char modelFile[256];
  78.     char backgroundTexFile[256];
  79.     char groundTexFile[256];
  80. } ViewerSettings;
  81.  
  82.  
  83.  
  84. extern ViewerSettings g_viewerSettings;
  85.  
  86.  
  87.  
  88. #ifdef __cplusplus
  89. extern "C" {
  90. #endif
  91.  
  92. void InitViewerSettings (void);
  93. int LoadViewerSettings (const char *filename);
  94. int SaveViewerSettings (const char *filename);
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99.  
  100.  
  101.  
  102. #endif // INCLUDED_VIEWERSETTINGS